package com.lmh.pojo;

import org.apache.commons.mail.EmailException;
import org.apache.commons.mail.HtmlEmail;

import java.util.Random;
import java.util.UUID;

public class EmailText {
    public static void main(String[] args) {



       /* try {
            HtmlEmail email =new HtmlEmail();
            email.setHostName("smtp.163.com");
            email.setCharset("utf-8");
            email.addTo("bfc20179445@163.com");
            email.setFrom("bfc20179445@163.com","cs");
            email.setAuthentication("bfc20179445@163.com","YBGDPCUESZIPNDDF");
            email.setSubject("登录验证码");
            Random rd=new Random();
            int uid=rd.nextInt(10000);
            System.out.println(uid);
            String s=uid+"";
            email.setMsg(s);
            email.send();
        } catch (EmailException e) {
            e.printStackTrace();
        }*/
        String s=null;




    }



}
